package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.*;

import java.time.LocalDate;

/**
 * @Author: WangHongKun
 * @Date: 2022/9/22 16:58
 * @Email: 2028911483@qq.com
 * @Phone: 18683977706
 */


public interface OrderService {

    OrderSubmitVO  submit(OrdersSubmitDTO ordersSubmitDTO) throws Exception;

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    void paySuccess(String number);

    PageResult<OrderVO> historyOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO QueryOrderDetail(Long id);

    void CancelOrder(Long id);

    void repetition(Long id);

    PageResult<OrderVO> conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO getStatistics();

    OrderVO getOrderDetail(Long id);

    void confirmOrder(Long id);

    void rejection(Long id , String rejectionReason);

    void cancel (OrdersCancelDTO ordersCancelDTO);

    void delivery(Long id);

    void  complete(Long id);

    void  reminder(Long id);


}
